\hypertarget{group__spherical__mappings}{
\section{\-Spherical \-Mappings}
\label{group__spherical__mappings}\index{\-Spherical Mappings@{\-Spherical Mappings}}
}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f \hyperlink{group__spherical__mappings_gabb50d34723dc8f63f83481dda7e4538a}{nih\-::from\-\_\-spherical\-\_\-coords} (const \-Vector2f \&uv)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f \hyperlink{group__spherical__mappings_gae14d642cb444062ebf966fc27f379972}{nih\-::to\-\_\-spherical\-\_\-coords} (const \-Vector3f \&vec)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f \hyperlink{group__spherical__mappings_ga5852f54031a04a3c2622ac9c1c3ee181}{nih\-::square\-\_\-to\-\_\-unit\-\_\-disk} (const \-Vector2f uv)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f \hyperlink{group__spherical__mappings_ga4c1322b35d3548385cfbcde647eaa9b6}{nih\-::unit\-\_\-disk\-\_\-to\-\_\-square} (const \-Vector2f disk)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f \hyperlink{group__spherical__mappings_ga8b4bb2387e2dcc609267e00777c753d1}{nih\-::square\-\_\-to\-\_\-cosine\-\_\-hemisphere} (const \-Vector2f \&uv)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f \hyperlink{group__spherical__mappings_ga1e65205c0882ccfa8b8cea7ab18525ce}{nih\-::cosine\-\_\-hemisphere\-\_\-to\-\_\-square} (const \-Vector3f \&dir)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f \hyperlink{group__spherical__mappings_ga711e9a117559053c96478f404aa2a278}{nih\-::uniform\-\_\-square\-\_\-to\-\_\-sphere} (const \-Vector2f \&uv)
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f \hyperlink{group__spherical__mappings_ga74d80bd5bc66492ae691520586329be5}{nih\-::uniform\-\_\-sphere\-\_\-to\-\_\-square} (const \-Vector3f \&vec)
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{group__spherical__mappings_ga1e65205c0882ccfa8b8cea7ab18525ce}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!cosine\-\_\-hemisphere\-\_\-to\-\_\-square@{cosine\-\_\-hemisphere\-\_\-to\-\_\-square}}
\index{cosine\-\_\-hemisphere\-\_\-to\-\_\-square@{cosine\-\_\-hemisphere\-\_\-to\-\_\-square}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{cosine\-\_\-hemisphere\-\_\-to\-\_\-square}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f nih\-::cosine\-\_\-hemisphere\-\_\-to\-\_\-square (
\begin{DoxyParamCaption}
\item[{const \-Vector3f \&}]{dir}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga1e65205c0882ccfa8b8cea7ab18525ce}
inverts the square to cosine-\/weighted hemisphere mapping


\begin{DoxyParams}{\-Parameters}
{\em dir} & 3d direction \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_gabb50d34723dc8f63f83481dda7e4538a}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!from\-\_\-spherical\-\_\-coords@{from\-\_\-spherical\-\_\-coords}}
\index{from\-\_\-spherical\-\_\-coords@{from\-\_\-spherical\-\_\-coords}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{from\-\_\-spherical\-\_\-coords}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f nih\-::from\-\_\-spherical\-\_\-coords (
\begin{DoxyParamCaption}
\item[{const \-Vector2f \&}]{uv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_gabb50d34723dc8f63f83481dda7e4538a}
maps a point in spherical coordinates to the unit sphere


\begin{DoxyParams}{\-Parameters}
{\em uv} & uv coordinates \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_ga8b4bb2387e2dcc609267e00777c753d1}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!square\-\_\-to\-\_\-cosine\-\_\-hemisphere@{square\-\_\-to\-\_\-cosine\-\_\-hemisphere}}
\index{square\-\_\-to\-\_\-cosine\-\_\-hemisphere@{square\-\_\-to\-\_\-cosine\-\_\-hemisphere}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{square\-\_\-to\-\_\-cosine\-\_\-hemisphere}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f nih\-::square\-\_\-to\-\_\-cosine\-\_\-hemisphere (
\begin{DoxyParamCaption}
\item[{const \-Vector2f \&}]{uv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga8b4bb2387e2dcc609267e00777c753d1}
maps the unit square to the hemisphere with a cosine-\/weighted distribution


\begin{DoxyParams}{\-Parameters}
{\em uv} & uv coordinates \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_ga5852f54031a04a3c2622ac9c1c3ee181}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!square\-\_\-to\-\_\-unit\-\_\-disk@{square\-\_\-to\-\_\-unit\-\_\-disk}}
\index{square\-\_\-to\-\_\-unit\-\_\-disk@{square\-\_\-to\-\_\-unit\-\_\-disk}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{square\-\_\-to\-\_\-unit\-\_\-disk}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f nih\-::square\-\_\-to\-\_\-unit\-\_\-disk (
\begin{DoxyParamCaption}
\item[{const \-Vector2f}]{uv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga5852f54031a04a3c2622ac9c1c3ee181}
map a point on \mbox{[}0,1\mbox{]}$^\wedge$2 to a uniformly distributed point on a disk of radius 1


\begin{DoxyParams}{\-Parameters}
{\em uv} & uv coordinates \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_gae14d642cb444062ebf966fc27f379972}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!to\-\_\-spherical\-\_\-coords@{to\-\_\-spherical\-\_\-coords}}
\index{to\-\_\-spherical\-\_\-coords@{to\-\_\-spherical\-\_\-coords}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{to\-\_\-spherical\-\_\-coords}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f nih\-::to\-\_\-spherical\-\_\-coords (
\begin{DoxyParamCaption}
\item[{const \-Vector3f \&}]{vec}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_gae14d642cb444062ebf966fc27f379972}
computes the spherical coordinates of a 3d point


\begin{DoxyParams}{\-Parameters}
{\em vec} & 3d direction \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_ga74d80bd5bc66492ae691520586329be5}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!uniform\-\_\-sphere\-\_\-to\-\_\-square@{uniform\-\_\-sphere\-\_\-to\-\_\-square}}
\index{uniform\-\_\-sphere\-\_\-to\-\_\-square@{uniform\-\_\-sphere\-\_\-to\-\_\-square}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{uniform\-\_\-sphere\-\_\-to\-\_\-square}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f nih\-::uniform\-\_\-sphere\-\_\-to\-\_\-square (
\begin{DoxyParamCaption}
\item[{const \-Vector3f \&}]{vec}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga74d80bd5bc66492ae691520586329be5}
maps the sphere to a unit square with a uniform distribution


\begin{DoxyParams}{\-Parameters}
{\em dir} & 3d direction \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_ga711e9a117559053c96478f404aa2a278}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!uniform\-\_\-square\-\_\-to\-\_\-sphere@{uniform\-\_\-square\-\_\-to\-\_\-sphere}}
\index{uniform\-\_\-square\-\_\-to\-\_\-sphere@{uniform\-\_\-square\-\_\-to\-\_\-sphere}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{uniform\-\_\-square\-\_\-to\-\_\-sphere}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector3f nih\-::uniform\-\_\-square\-\_\-to\-\_\-sphere (
\begin{DoxyParamCaption}
\item[{const \-Vector2f \&}]{uv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga711e9a117559053c96478f404aa2a278}
maps the unit square to the sphere with a uniform distribution


\begin{DoxyParams}{\-Parameters}
{\em uv} & uv coordinates \\
\hline
\end{DoxyParams}
\hypertarget{group__spherical__mappings_ga4c1322b35d3548385cfbcde647eaa9b6}{
\index{\-Spherical Mappings@{\-Spherical Mappings}!unit\-\_\-disk\-\_\-to\-\_\-square@{unit\-\_\-disk\-\_\-to\-\_\-square}}
\index{unit\-\_\-disk\-\_\-to\-\_\-square@{unit\-\_\-disk\-\_\-to\-\_\-square}!Spherical Mappings@{\-Spherical Mappings}}
\subsubsection[{unit\-\_\-disk\-\_\-to\-\_\-square}]{\setlength{\rightskip}{0pt plus 5cm}\-N\-I\-H\-\_\-\-H\-O\-S\-T \-N\-I\-H\-\_\-\-D\-E\-V\-I\-C\-E \-Vector2f nih\-::unit\-\_\-disk\-\_\-to\-\_\-square (
\begin{DoxyParamCaption}
\item[{const \-Vector2f}]{disk}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{group__spherical__mappings_ga4c1322b35d3548385cfbcde647eaa9b6}
diskx, disky is point on radius 1 disk. x, y is point on \mbox{[}0,1\mbox{]}$^\wedge$2


\begin{DoxyParams}{\-Parameters}
{\em disk} & disk point \\
\hline
\end{DoxyParams}
